<%--
  Created by IntelliJ IDEA.
  User: gqy
  Date: 2021/10/9
  Time: 15:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%----%>
    <title>验证码登录</title>
        <script src="${pageContext.request.contextPath}/js/jquery-3.6.0.min.js"></script>
    <link href="${pageContext.request.contextPath}/css/login/code.css" rel="stylesheet">
</head>
<body>
<div id="main">
    <div class="login-wrap">
        <div id="signin" class="rl-modal">
            <div class="rl-modal-header">
                <h1>
                    <span class="active-title" rel="stylesheet"><a href="login.jsp"style="list-style: none;text-decoration:none;">账号登录</a></span>
                    <span class="xa-showPhoneSignin"><a href="code.jsp"style="list-style: none;text-decoration:none;">验证码登录</a></span>
                </h1>
            </div>
            <div class="rl-modal-body js-loginWarp">
                <div class="clearfix">
                    <form id="signup-from" action="${pageContext.request.contextPath}/Validation" method="post">
                        <div class="rlf-group pr">
                            <input type="text" maxlength="37"
                                   class=" ipt1 consumerEmail"
                                   placeholder="请输入邮箱" name="consumerEmail">
                            <p class="rlf-tip-wrap consumerEmail-msg"></p>
                        </div>
                        <div class="rlf-group pr">
                            <input type="text" name="password"
                                   class="ipt password"
                                   placeholder="请输入验证码" maxlength="20" >
                            <a class="smscode">获取验证码</a>
                            <p class="rlf-tip-wap password-msg"></p>
                        </div>

                        <div class="rlf-group ">
                            <input type="submit" value="登录"
                                   class="moco-btn moco-btn-red moco-btn-lg btn-full">
                        </div>
                    </form>
                </div>
            </div>
            <div class="rl-model-footer">
                <div class="pop-login-signup-box clearfix">
                    <span class="xa-showSignup"><a href="register.jsp"style="list-style: none;text-decoration:none;">快速注册</a></span>
                </div>
            </div>

        </div>
    </div>
</div>

<script>
    $(".smscode").click(function () {
        var consumerEmail = $(".consumerEmail").val();
        var url="${pageContext.request.contextPath}/code";
        $.post(
            url,
            {"consumerEmail":consumerEmail},
            function (result) {

            },
            "json"
        )

    });
</script>

</body>
</html>
